package com.weidey.blog.domain;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.weidey.common.annotation.Excel;
import com.weidey.common.core.domain.BaseEntity;

/**
 * 首页轮播图对象 blog_carousel
 * 
 * @author weidey
 * @date 2024-09-09
 */
@Setter
@Getter
public class Carousel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 轮播图 */
    @Excel(name = "轮播图")
    private String carouselUrl;

    /** 广告链接 */
    @Excel(name = "广告链接")
    private String url;

    /** 是否展示 */
    @Excel(name = "是否展示")
    private String isState;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("carouselUrl", getCarouselUrl())
            .append("url", getUrl())
            .append("isState", getIsState())
            .toString();
    }
}
